feat: introduce or-pattern syntax for defining patches#950
Conversation
ahl
left a comment
There was a problem hiding this comment.
How would this work if rename is specified?
Good question. This would require a simple restriction preventing patches that use the or-pattern from specifying renames when applied to multiple types. I used Similarly, variant patches should not be able to specify |
|
So the use case here is that you have a bit chunk of the generated types for which you want an additional derive macro applied? Many, but not all? |
Yes, some macros (e.g. That is my use case. |
This PR introduces an or-pattern syntax, allowing the same patch to be applied to multiple generated types.
Example